package cn.edu.sju;

public class WeekDemo
{
    public void doWhat(Week day) {
                switch (day) {
                case MON:
               case TUE:
                 case WED:
                 case THU:
                 case FRI:
                    System.out.println("工作日，努力写代码！");
                     break;
                 case SAT:
                     System.out.println("星期六，休息！看电影！");
                     break;
                 case SUN:
                     System.out.println("星期日，休息！打篮球！");
                     break;
                 default:
                     System.out.println("地球上一个星期就7天");
                 }
             }
        
             public static void main(String[] args) {
                WeekDemo wd = new WeekDemo();
                 wd.doWhat(Week.THU);
                 Week sat = Week.SAT;
                 wd.doWhat(sat);
         
}
}